<div class="resource_info">
  <% if @page.has_hint? %>
  <%= render_message do %>
    <%= @page.hint %>
  <% end %>
  <% end %>
  <div class="value">
    <label>
      <% if @page.definition.blank? %>
        <span class="inline warning icon" title="<%= Alchemy.t(:page_definition_missing) %>"></span>
      <% end %>
      <%= Alchemy::Page.human_attribute_name(:page_layout) %>
    </label>
    <p><%= @page.layout_display_name %></p>
  </div>
  <div class="value">
  <% if @page.redirects_to_external? %>
    <label><%= Alchemy::Page.human_attribute_name(:urlname) %></label>
    <p><%= @page.urlname %></p>
  <% else %>
    <label><%= Alchemy::LegacyPageUrl.human_attribute_name(:urlname) %></label>
    <p><%= "/#{@page.urlname}" %></p>
  <% end %>
  </div>
  <div class="value">
    <label><%= Alchemy.t(:page_status) %></label>
    <p><%= combined_page_status(@page) %></p>
  </div>
  <div class="value">
    <label><%= Alchemy.t(:page_was_created) %></label>
    <p><%= Alchemy.t(:from_at) % {by: @page.creator_name, at: l(@page.created_at, format: :page_status)} %></p>
  </div>
  <div class="value">
    <label><%= Alchemy.t(:page_was_updated) %></label>
    <p><%= Alchemy.t(:from_at) % {by: @page.updater_name, at: l(@page.updated_at, format: :page_status)} %></p>
  </div>
  <% if @page.locked? %>
  <div class="value">
    <label><%= Alchemy.t(:currently_edited_by) %></label>
    <p><%= @page.locker_name %></p>
  </div>
  <% end %>
</div>
